const path = require('path');
module.exports = {
    devServer: {
        open: true
    },
    chainWebpack: (config) => {
        config.resolve.alias
            .set('@', resolve('src'))
            .set('pages', resolve('src/pages'))
            .set('@components', resolve('src/components'))
    }
}



function resolve(dir) {
    return path.join(__dirname, dir)
}
